package org.stvd.service.workflow.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.stvd.core.dto.QueryResult;
import org.stvd.entities.workflow.WfReflect;
import org.stvd.repository.workflow.WfReflectDao;
import org.stvd.service.base.impl.BaseServiceImpl;
import org.stvd.service.workflow.WfReflectService;

@Service("WfReflectService")
public class WfReflectServiceImpl extends BaseServiceImpl<WfReflect> implements WfReflectService {

    @Resource(name="WfReflectDao")
    private WfReflectDao wfReflectDao;

    public QueryResult<WfReflect> getQueryResult(int start, int limit) {
        return wfReflectDao.getQueryResult(start, limit);
    }

    public WfReflect findByRequestUrl(String requestUrl, String requestMethod) {
        return wfReflectDao.findByRequestUrl(requestUrl, requestMethod);
    }
    
    public List<WfReflect> findByRequestUrl(String requestUrl) {
        return wfReflectDao.findByRequestUrl(requestUrl);
    }
}
